/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.common.lib;

import java.math.BigDecimal;

/**
 *
 * @author Bayu
 */
public class RoundNumber {
    public static double getRound(double number,int decimalPlace){
        BigDecimal bd = new BigDecimal(number);
        bd = bd.setScale(decimalPlace,BigDecimal.ROUND_HALF_EVEN);
        return bd.doubleValue();
    }
}
